<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/19 10:00
 * Desc:
 */
class Request_Api_V2_Integral_Award extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);

        $this->validation->rule('mid', ['Rule_Member', 'need_member']);
    }

    public function get_award_log()
    {
        $this->rules = [
            ['pagesize', ['not_empty', 'digit', $this->rule_min(1)]],
            ['page', ['not_empty', 'digit', $this->rule_min(1)]],
        ];

        return $this;
    }

    public function luck_draw()
    {
        $this->rules = [
            ['id', ['not_empty', 'digit', $this->rule_min(1)]],
            ['type', ['digit']],
        ];

        return $this;
    }

    public function save_award_info()
    {
        $this->rules = [
            ['id', ['not_empty', 'digit', $this->rule_min(1)]],
            ['link_name', ['not_empty']],
            ['link_tel', ['not_empty', 'phone']],
        ];

        return $this;
    }

}